package net.loyintean.pearlshell.validation.config;

import net.loyintean.pearlshell.validation.IValidRuleConfig;

public class ValidConfig implements IValidRuleConfig {

	private final String ruleName;

	private final Object[] validParam;

	public ValidConfig(String name) {
		this.ruleName = name;
		validParam = null;
	}

	public ValidConfig(String name, Object... params) {
		this.ruleName = name;
		validParam = params;
	}

	@Override
	public String ruleName() {
		return ruleName;
	}

	@Override
	public Object[] validParam() {
		return validParam;
	}

}
